package cn.wolfcode.edu.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ToString
public class Salary extends BaseDomain {
    private Employee employee;//员工
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date month;//月份

    private BigDecimal salary;//基础工资

    private Integer workDays;//工作天数

    private Integer lateDays;//迟到天数

    private Integer earlyDays;//早退天数

    private Integer retroactiveDays;//补签天数

    private BigDecimal finalSalary;//最终工资
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date stockDater;//结算时间
}